
import axios from "axios"

let myname={
    state: {
        text:"文本",
        num:123
      },
      getters: {
        texts(state){
            return state.text.slice(0,4)
        }
      },
      mutations: {
        UPDATE_TEXT(state,payload){
            state.text=payload.newtext
        }
      },
      actions: {
        action(){
            axios.get("http://localhost:8889/yacVuex").then((ok)=>{
                console.log(ok)
            })
        }
      },
      
}

export default myname